package java.Dao;

import entity.Article;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author Su
 * @Date 2025/4/29 23:09
 * @Version 1.0 （版本号）
 */
public interface ArticleDAO {
    int createArticle(Article article) throws SQLException;
    Article getArticleById(int id) throws SQLException;
    List<Article> getArticlesByKnowledgeBase(int knowledgeBaseId) throws SQLException;
    boolean updateArticle(Article article) throws SQLException;
    boolean deleteArticle(int id) throws SQLException;
    boolean exists(int id) throws SQLException;
}